home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
u_man
/
cat1
/
colorview.z
/
colorview
Wrap
Text File
|
1998-10-30
|
4KB
|
133 lines
CCCCOOOOLLLLOOOORRRRVVVVIIIIEEEEWWWW((((1111)))) CCCCOOOOLLLLOOOORRRRVVVVIIIIEEEEWWWW((((1111))))
NNNNAAAAMMMMEEEE
colorview - display list of X11 colors and show selected color
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
ccccoooolllloooorrrrvvvviiiieeeewwww [ ----bbbbrrrroooowwwwsssseeee ] [ ----ddddiiiissssppppllllaaaayyyy _d_p_y ] [ ----ggggeeeeoooommmmeeeettttrrrryyyy _g_e_o_m ]
[ ----nnnnaaaammmmeeee _n_a_m_e ] [ ----tttteeeexxxxtttt ] [ _f_i_l_e | ---- ]
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
_C_o_l_o_r_v_i_e_w is an X11 program that displays a color ``patch'' and a list of
color names from an X11 rgb database. The color for a name is displayed
by clicking the left mouse button over the color name.
Command-line arguments are:
----bbbbrrrroooowwwwsssseeee only lists the colors; the Accept and Apply buttons are not
displayed.
----ddddiiiissssppppllllaaaayyyy _d_p_y
specifies the X server to contact; see _X(_1).
----ggggeeeeoooommmmeeeettttrrrryyyy _g_e_o_m
specifies the preferred size and position of the window; see
_X(_1).
----nnnnaaaammmmeeee _n_a_m_e
specifies the application name under which resources are to be
obtained, rather than the default executable file name.
----tttteeeexxxxtttt indicates the specified file is a text file containing color
names and/or X #rgb color specifications, with 1 name per line.
_f_i_l_e specifies the name the rgb database. The database must be in
_n_d_b_m(3B) format unless ----tttteeeexxxxtttt is specified. With ----tttteeeexxxxtttt, the
database is read from standard input if _f_i_l_e is ``-''.
Colorview has three buttons when not invoked with ----bbbbrrrroooowwwwsssseeee:
Accept Print the selected color name on the standard output and exit.
Apply Print the selected color name on the standard output.
Cancel Exits the program.
EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
To display only unique colors from the default _r_g_b database:
showrgb | sort -u +0 -3 | awk '{print $4,$5,$6,$7}' \
| sort | colorview -text -
PPPPaaaaggggeeee 1111
CCCCOOOOLLLLOOOORRRRVVVVIIIIEEEEWWWW((((1111)))) CCCCOOOOLLLLOOOORRRRVVVVIIIIEEEEWWWW((((1111))))
To display a list of colors from a file:
colorview -text mycolors.txt
To display a list of colors using the X #rgb color specification:
colorview -text - << _END_
#f0f
#7171c6
#8E3855
_END_
FFFFIIIILLLLEEEESSSS
/usr/lib/X11/rgb default rgb ndbm(3B) database
SSSSEEEEEEEE AAAALLLLSSSSOOOO
rgb(1), showrgb(1), X(1)
PPPPaaaaggggeeee 2222